﻿@using BonjourQuotation.UI.Models.CustomerModel
@model ManageCustomerGroupsGridViewModel
<div style="margin-left :15px; margin-bottom:15px;">
    <div class="row form-row">
        <div class=" col-lg-3" style=" margin-left: 30px; ">
            <div class="input-group">
                <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.GroupStatus)</span>
                @Html.DropDownListFor(model => model.SelectedGroupStatus, new SelectList(Model.GroupStatus, "Value", "Text"), "Select", new { @class = "table_inputs_SmallPadding2 inpputgr form-control", @id = "SearchByGroupStatusDrop" })
            </div>
        </div>
    </div>
</div>

<div style="width: 941px; min-height: 200px; max-height: 456px; margin: auto; padding-bottom: 30px; margin-left: 9px; ">
    <table class="table table-bordered table-hover table-condensed" style="margin-bottom: -1px !important; width: 920px;background-color:white;">
        <thead>
            <tr>
                <th width="14%;" class="GridHeaders font12">Group Code</th>
                <th width="30%;" class="GridHeaders font12">Group Name</th>
                <th width="10%;" class="GridHeaders font12">Status</th>
                <th width="10%;" class="GridHeaders font12">Arrival</th>
                <th width="10%;" class="GridHeaders font12">Departure</th>
                <th width="5%;" class="GridHeaders font12">Pax</th>
                <th width="7%;" class="GridHeaders font12">Rooms</th>
                <th width="7%;" class="GridHeaders font12">IsGir</th>
                <th width="7%;" class="GridHeaders font12"></th>
            </tr>
        </thead>
    </table>
    <div style="height:390px; overflow-y:auto;">
        <table class="table table-bordered table-hover table-condensed" style="width: 920px; table-layout: fixed; background-color: white;">
            <tbody>
                @Html.HiddenFor(model => model.CustomerID, new { @id = "SearchCustomerID" })
                @for (int ind = 0; ind < Model.Rows.Count; ind++)
                {
                    <tr>
                        <td width="14%;">@Html.LabelForModel(Model.Rows[ind].GroupCode, new { @class = "table_inputs_125 FSizeForGroupTable", @style = "text-align: left" })</td>
                        <td width="30%;">@Html.LabelForModel(Model.Rows[ind].GroupName, new { @class = "table_inputs_270 FSizeForGroupTable", @style = "text-align: left" })</td>
                        <td width="10%;">@Html.LabelForModel(Model.Rows[ind].GroupStatusDesc, new { @class = "table_inputs_90 FSizeForGroupTable", @style = "text-align: left" })</td>
                        <td width="10%;">@Html.LabelForModel(Model.Rows[ind].ArrivalDate, new { @class = "table_inputs_90 FSizeForGroupTable", @style = "text-align: left" })</td>
                        <td width="10%;">@Html.LabelForModel(Model.Rows[ind].DepartureDate, new { @class = "table_inputs_90 FSizeForGroupTable", @style = "text-align: left" })</td>
                        <td width="5%;">@Html.LabelForModel(Model.Rows[ind].Pax, new { @class = "table_inputs_40 FSizeForGroupTable", @style = "text-align: left" })</td>
                        <td width="7%;">@Html.LabelForModel(Model.Rows[ind].Rooms, new { @class = "table_inputs_60 FSizeForGroupTable", @style = "text-align: left" })</td>
                        <td width="7%;">@Html.LabelForModel(Model.Rows[ind].IsGir ? "Yes" : "No", new { @class = "table_inputs_60 FSizeForGroupTable", @style = "text-align: left" })</td>
                        <td width="7%;" style="text-align:center"><button class="btn14 btn50 btnheight22" @*onclick="ShowVendorContractDetails(@Model.CustomerID,@Model.Row[ind].SelectedSeasonID)"*@>-></button></td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
</div>


